import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
//如果不引入该样式，则弹框等样式没有
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import pinia from './store'
import dynicRoute from './utils/dynicRoute'
const app=createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(pinia)
dynicRoute()
//必须放在路由设置前
app.use(router)
app.mount('#app')
